﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;

namespace _1._11._2015_BookReview.Models
{
    public class BookViewModel
    {
        
        public int BookId { get; set; }
        [DisplayName("Book Title")]
        public string Title { get; set; }
        [DisplayName("Author First Name")]
        public string AuthorFName { get; set; }
        [DisplayName("Author Last Name")]
        public string AuthorLName { get; set; }
        public List<ReviewViewModel> Reviews { get; set; }
    }

    public class BooksViewModel
    {
        public List<BookViewModel> Books { get; set; }
    }

    public class ReviewerViewModel
    {
        public string ReviewerId { get; set; }
        public string ReviewerName { get; set; }
    }

    public class ReviewViewModel
    {
        public ReviewerViewModel Reviewer { get; set; }
        [DisplayName("Enter Review")]
        public string Text { get; set; }
        public int BookId { get; set; }
        public string Title { get; set; }
    }

}